/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>Project: mybatis2022 - BookMapper
 * <p>Powered by webrx On 2022-04-13 09:20:28
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface BookMapper {
    @Select("select id,name,author,price from book order by id desc")
    public List<Map<String,Object>> queryAll();

    int count();
    int count(String w);
    List<Map<String,Object>> queryPageBy();
    List<Map<String,Object>> queryPageBy(Map<String,Object> map);


    List<Map<String,Object>> showByPage();
}
